<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
		body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
		#allmap{height:500px;width:100%;}
		#r-result{width:100%; font-size:14px;}
	</style>
		<title>校园管理</title>
		<%@ include file="../com.jsp"%>
		  <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=RxUvjAAMSbD6hH8EHqLs2ZBskuSPht2T">
		</script>
	</head>
	<body>
	<p>点击查询按钮查看具体位置</p>
		<div id="allmap"></div>
		<div id="r-result">
		<input type="button" value="查询" onclick="theLocation()" />
	</div>
		
	</body>
</html>

<script type="text/javascript">
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	

	
	//河南大学
	//var point = new BMap.Point(114.316467, 34.82315);
	//郑州大学
		var point = new BMap.Point(113.669148, 34.788102);	
	map.centerAndZoom(point,12);
	map.enableScrollWheelZoom(true);
	
	// 用经纬度设置地图中心点
	function theLocation(){
			map.clearOverlays(); 
			var new_point = new BMap.Point(${biotech.zuobiao });
			var marker = new BMap.Marker(new_point);  // 创建标注
			map.addOverlay(marker);              // 将标注添加到地图中
			map.panTo(new_point);      
		}
</script>

